package cn.itcast.day02.demo03;

public class Demo06ArrayMin {
    public static void main(String[] args) {
        int[] array = {20, 10, 500, 30, 100};
        int min=array[0];
        for (int i = 0; i < array.length; i++) {
            if(min>array[i]){
                min=array[i];
            }
        }
        System.out.println("array数组的最小值为:"+min);
    }
}
